/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.st.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 仓位设置Entity
 * @author HOHD
 * @version 2020-12-16
 */
@Table(name="st_warehouse_position_setting", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="warehouse_name", attrName="warehouseName", label="仓库", queryType=QueryType.LIKE),
		@Column(name="warehouse_name_en", attrName="warehouseNameEN", label="仓库", queryType=QueryType.LIKE),
		@Column(name="warehouse_type", attrName="warehouseType", label="仓库类型"),
		@Column(name="capacity", attrName="capacity", label="容量"),
		@Column(name="effect", attrName="effect", label="有效"),
		@Column(name="remarks", attrName="remarks", label="备注", queryType=QueryType.LIKE),
	}, orderBy="a.id DESC"
)
public class StWarehousePositionSetting extends DataEntity<StWarehousePositionSetting> {
	
	private static final long serialVersionUID = 1L;
	private String warehouseName;		// 仓库
	private String warehouseNameEN;		// 仓库英文名
	private Integer warehouseType;		// 仓库类型
	private Integer capacity;		// 容量
	private Integer effect;		// 有效
	
	public StWarehousePositionSetting() {
		this(null);
	}

	public StWarehousePositionSetting(String id){
		super(id);
	}

	public String getWarehouseNameEN() {
		return warehouseNameEN;
	}

	public void setWarehouseNameEN(String warehouseNameEN) {
		this.warehouseNameEN = warehouseNameEN;
	}

	@Length(min=0, max=20, message="仓库长度不能超过 20 个字符")
	public String getWarehouseName() {
		return warehouseName;
	}

	public void setWarehouseName(String warehouseName) {
		this.warehouseName = warehouseName;
	}
	
	public Integer getWarehouseType() {
		return warehouseType;
	}

	public void setWarehouseType(Integer warehouseType) {
		this.warehouseType = warehouseType;
	}
	
	public Integer getCapacity() {
		return capacity;
	}

	public void setCapacity(Integer capacity) {
		this.capacity = capacity;
	}
	
	public Integer getEffect() {
		return effect;
	}

	public void setEffect(Integer effect) {
		this.effect = effect;
	}
	
}